package Study.demo12;

public class Worker {
    String name;
    int id;
    int leader;
    public Worker(String name, int id, int leader) {
        this.name = name;
        this.id = id;
        this.leader = leader;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getLeader() {
        return leader;
    }

    public void setLeader(int leader) {
        this.leader = leader;
    }
}
